@import "../../css/fun.less";
/**
 * Wrapper
 */
.combo-select {
  position: relative;
  width: @width_input;
  border: 1px #ebebeb solid;
  margin: 0px;
  border-radius:3px;
  background-color: #fff;
  box-sizing:border-box;
}
  .combo-select .combo-input {
   }

/**
 * Input field
 */
input[type="text"].combo-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: none;
  width: 100%;
  box-sizing: border-box;
  padding: 0 12px 0px 10px;
  border-radius: 0;
  background-color: transparent;
}
  .combo-input:focus {
    outline: none;
  box-shadow: none;
  }

/**
 * Arrow
 */
.combo-arrow {
  position: absolute;
  right: 0;
  top: 5;
  height: 100%;
  cursor: pointer;
  text-align: center;
  width: 38px;
  z-index: 2;
}
  .combo-arrow:before {
    content: " ";
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #cccccc;
    display: block;
    width: 0;
    height: 0;
    top: 0;
    right: 8px;
    bottom: 0;
    position: absolute;
    margin: auto 0; }

/**
 * When opened
 */
.combo-open{
  z-index: 3;
}
.combo-open .combo-arrow {
  border-color: @color_cur;
}
  .combo-open .combo-arrow:before {
    border-top: none;
    border-bottom: 4px solid @color_cur;
  }

/**
 * When focused
 */
.combo-focus {
  border-color: @color_cur;
  border-radius:3px 3px 0 0;
}
  .combo-focus input {
    border-color: none;
    box-shadow: none;
  }

/**
 * Hide native select
 */
.combo-select select {
  position: absolute;
  z-index: 1;
  left: 10000px;
  top: 0;
  width: 100%;
  height: 100%;
  -webkit-appearance: none;
  opacity: 0; }


/**
 * Selected option
 */
.option-selected {
  background-color: #eee;
}

/**

 * Option item
 */
.option-item {
  cursor: pointer;
  border-bottom: 1px #ebebeb solid;
}
  .option-item:hover {
    background-color: #f0f0f0;
  }
  .option-item:last-child {
    border-bottom: none;
  }

/**
 * Hovered option
 */
.option-hover,.option-hover:hover {
  background-color: @color_cur;
  color: #fff;
}

/**
 * Disabled and optgroups
 */
.option-group {
  cursor: text;
  font-weight: bold;
  background: #ebebeb;
   }

/**
 * Disabled
 */
.option-disabled {
  color:#ccc;
  border-bottom: 1px #ebebeb solid;
  cursor: not-allowed;
}
/**
 * Dropdown
 */
.combo-dropdown {
  position: absolute;
  z-index: 1;
  top: calc(100% + 1px);
  left: 0;
  width: calc(@width_input - 2px);
  max-height: 346px;
  margin: 0;
  padding: 0;
  display: none;
  overflow-y: auto;
  background: #fff;
  border-radius: 0 0 3px 3px;
  box-shadow: 0 0 0 1px @color_cur;
  box-sizing: border-box;
  text-align: left;
}
  .combo-dropdown li {
    list-style: none;
    padding:0 10px;
    margin: 0;
    line-height: 34px;}

/**
 * On Active
 */
.combo-open .combo-dropdown {
  display: block; }

/**
 * Search marker
 */
.combo-marker {
  text-decoration: underline; }

/*自适应*/
@media only screen and (max-width: 960px) {
  .combo-select{
    width: 100%;
    border:none;
    border-radius:0;
  }
  .combo-arrow{
    width: 38px;
  }
  .combo-dropdown{
    position: fixed;
    width: 70%;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    border-radius:3px;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0,0,0,.2);
    z-index: 3;
  }
  input[type="text"].combo-input{
    padding: 0;
    height:38px;
    line-height: 38px;
  }
  .combo-arrow:before{
    right: 0;
  }
  .combo-dropdown li {
    line-height: 54px;
}





}